<%@ page import="com.XiGuaXiaoMe.entity.course" %>
<%@ page import="java.util.List" %><%--

  Created by IntelliJ IDEA.
  User: jl
  Date: 2021/11/10
  Time: 22:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    List<course> courses=(List<course>) request.getAttribute("course");
%>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link rel="stylesheet" href="../CSS/toPage.css">


    <link rel="stylesheet" href="../font_cqbiizu5og9/iconfont.css">
    <title>自适应导航栏</title>
    <link rel="stylesheet" type="text/css" href="../CSS/导航栏c.css" />
    <link rel="stylesheet" type="text/css" href="../CSS/搜索框样式.css">
    <link rel="stylesheet" type="text/css" href="../CSS/table.css" />
    <link rel="stylesheet" type="text/css" href="../CSS/mainpage.css" />

    <link href="https://fonts.googleapis.com/css?family=Roboto+Condensed:300,300i,400,400i,700i" rel="stylesheet">

</head>
<body>

<iframe class="obj1" src="head.html" frameborder="0" width="1300px" height="90px" scrolling="no" style="margin: 0"></iframe>
<div class="shell"style=" background-color: #bb3e03;margin:0">
    <a href="名片.html" class="box"style="color: #faedcd;" ><i class="iconfont icon-liebiao"></i><span>个人信息</span></a>
    <a href="课程表1.html" class="box"style="color: #faedcd;"><i class="iconfont icon-cangku"></i><span> 查看课表</span></a>
    <a href="#l" class="box"style="color: #faedcd;"><i class="iconfont icon-zhuti_tiaosepan"></i><span>选课</span></a>
    <a href="#" class="box"style="color: #faedcd;"><i class="iconfont icon-qianbao"></i><span>已选课程</span></a>
    <a href="#" class="box"style="color: #faedcd;"> <i class="iconfont icon-tupian"></i><span>已选学分</span></a>
    <a href="#" class="box"style="color: #faedcd;"><i class="iconfont icon-erweima"></i><span>院系要求</span></a>
    <a href="日历3.html" class="box" style="color: #faedcd;"><i class="iconfont icon-dunpaibaoxianrenzheng"></i><span>日历</span></a>
    <a href="#" class="box"style="color: #faedcd;"><i class="iconfont icon-dengchu"></i><span>退出系统</span></a>
</div>
<section>
    <div class="navbar">
        <!-- 复选框的id属性值和label元素的for属性值相同的话 那么就可以通过label元素选中复选框 -->
        <input type="checkbox" id="nav" /><label for="nav"></label>
        <ul>
            <li><a href="javascript:;">选课管理</a></li>
            <li><a href="javascript:;">我的选课</a></li>
        </ul>
    </div>
    <div class="a">
        <input type="text" class="b" placeholder=" 按照课程名搜索">
        <a href="#" class="c">
            <img src="../图标/搜索.png" style="width: 30px;">
        </a>
    </div>
    <div class="a">

        <input type="text" class="b" placeholder="按照课序号搜索">
        <a href="#" class="c">
            <img src="../图标/搜索.png" style="width: 30px;">
        </a>
    </div>
    <div class="a">

        <input type="text" class="b" placeholder=" 按照教师名搜索">
        <a href="#" class="c">
            <img src="../图标/搜索.png" style="width: 30px;">
        </a>
    </div>
    <br><br>
    <div class="container">
        <!--分页容器_1-->

        <table class="page_1">
            <thead>
            <tr>
                <th>课程名称</th>
                <th>课序号</th>
                <th>代课老师</th>
                <th>上课时间及地点</th>
                <th>课余量</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <%for(course c:courses){ %>

            <tr>
                <td><%=c.getName()%></td>
                <td><%=c.getXuhao()%></td>
                <td><%=c.getTeacher()%></td>
                <td><%=c.getTime()%><%=c.getPlace()%></td>
                <td><%=c.getRongliang()%></td>
                <td>无法选课</td>
            </tr>
            <%}%>
            </tbody >
        </table>

    </div>

</section>

</body>

</html>